package com.woniuxy.driverschool.service.impl;

import com.woniuxy.driverschool.entity.Car;
import com.woniuxy.driverschool.mapper.CarMapper;
import com.woniuxy.driverschool.service.CarService;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
@Data
public class CarServiceImpl implements CarService {
    @Resource
    private CarMapper carMapper;
    @Override
    public List<Car> all() {
        return carMapper.all();
    }

    @Override
    public List<Car> findCarByOptions(Car car) {
        return carMapper.findCarByOptions(car);
    }

    @Override
    public void add(Car car) {
       carMapper.add(car);
    }


}
